package java730;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Random;

public class CallnamePlus1 {

	public static void main(String[] args) throws Exception {
		BufferedReader br=new BufferedReader(new FileReader("name.txt"));
		HashMap<String,Integer> map=new HashMap<>();
		ArrayList<String> arr=new ArrayList<>();
		String read;
		while((read=br.readLine())!=null){
			String[] name=read.split("-");
			map.put(name[0], 0);
			arr.add(name[0]);
		}
		int count=0;
		while(count<10){
			Random random= new Random();
			int call=random.nextInt(arr.size());
			String callname=arr.get(call);
			if(map.get(callname)==0){
				System.out.println(callname);
				count++;
				map.put(callname, 1);
			}else{
				continue;
			}
		}
		
	}

}
